package cn.pop.hsp_system_v2.Pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PatientCard {
    /**
     * 就诊卡编号
     */
    private String uuid;

    /**
     * 密码 md5加密
     */
    private String password;

    /**
     * 余额 默认为0
     */
    private String balance;

    /**
     * 0停用，1正常，2欠费，3挂失
     */
    private Integer state;

    /**
     * 创建时间
     */
    private Date createTime;

    public Integer getCardtype() {
        return cardtype;
    }

    public void setCardtype(Integer cardtype) {
        this.cardtype = cardtype;
    }

    private Integer cardtype;

    private static final long serialVersionUID = 1L;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public String toString() {
        return "PatientCard{" +
                "uuid='" + uuid + '\'' +
                ", password='" + password + '\'' +
                ", balance='" + balance + '\'' +
                ", state=" + state +
                ", createTime=" + createTime +
                '}';
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
